package jp.sourceforge.akjrcp.dropsomething2;

import java.io.File;

import jp.sourceforge.akjrcp.akj_betas.Messages;
import jp.sourceforge.akjrcp.commons.ui.widget.WidgetBuilder;
import jp.sourceforge.akjrcp.ui.AbstractGenericParametersOptionEditor;
import jp.sourceforge.akjrcp.util.StatusBarUtils;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.PlatformUI;

public abstract class AbstractDropFileGenericParametersOptionEditor extends AbstractGenericParametersOptionEditor{

	protected Label dropFileLabel;//TODO change
	private Button selectDropFileButton;
	protected void createDropFileComposite(Composite parent){
		Composite root=WidgetBuilder.createTwoGridLayoutComposite(parent, SWT.NULL);
		root.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		//TODO change file chooser
		dropFileLabel=new Label(root,SWT.NULL);
		dropFileLabel.setText("hello");
		dropFileLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
		selectDropFileButton = new Button(root,SWT.NULL);
		selectDropFileButton.setText(Messages.getString("dropsomething.or_select_file"));
		
	}
	public Label getDropFileLabel() {
		return dropFileLabel;
	}
	public void setDropFileLabel(Label dropFileLabel) {
		this.dropFileLabel = dropFileLabel;
	}
	public Button getSelectDropFileButton() {
		return selectDropFileButton;
	}
	public void setSelectDropFileButton(Button selectDropFileButton) {
		this.selectDropFileButton = selectDropFileButton;
	}
}
